(function($){
	var formatTime = function formatLocalTime(options) {
		this.opts = $.extend({},formatLocalTime.DEFULT,options);
	  	switch (this.opts.dateFormat){
	  		case 'yy年mm月dd日':
	  		case 'yy-mm-dd':
	  			
	  			break;
	  		default:
	  			break;
	  	}
	    //return [year, month, day].map(formatNumber).join('-') + ' ' + [hour, minute, second].map(formatNumber).join(':')
	}
	function formatNumber(n) {
	    n = n.toString()
	    return n[1] ? n : '0' + n
	}
	
	formatLocalTime.prototype.ymd=function(){
		this.year = this.opts.date.getFullYear()
	    this.month = this.opts.date.getMonth() + 1
	    this.day = this.opts.date.getDate()
	    this.hour = this.opts.date.getHours()
	    this.minute = this.opts.date.getMinutes()
	    this.second = this.opts.date.getSeconds()
	}
	formatLocalTime.prototype.hms=function(){
		
	}
	
	formatLocalTime.DEFULT={
		data:new Date().getTime(),
		dateFormat:'yy-mm-dd'
	}
	
})(jQuery)